package com.jeecms.wicool.manager.share.impl;

import com.jeecms.wicool.dao.share.PraiseDao;
import com.jeecms.wicool.entity.share.Praise;
import com.jeecms.wicool.manager.share.PraiseMng;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by cuiyanlei on 15/6/17.
 */
@Service
@Transactional
public class PraiseMngImpl implements PraiseMng {

    @Autowired
    private PraiseDao dao;

    @Override
    public Praise findById(Integer foreginKey, int type) {
        return dao.findById(foreginKey, type);
    }

    @Override
    public Praise deleteByForeginKey(Integer foreginKey, int type) {
        return dao.deleteByForeginKey(foreginKey, type);
    }

    @Override
    public Praise save(Praise bean) {
        return dao.save(bean);
    }
}
